/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.sbbs.base.dao;

import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import org.sbbs.genericdao.dao.jpa.GenericDAO;

/**
 *
 * @author Mr.fdc <fdc_messenger@126.com>
 */
public interface BaseDao<T, ID extends Serializable> extends GenericDAO<T, ID> {

    public EntityManager getEm();

    public boolean exist(ID id);

    public void remove(List<T> list);

    public int batchUpdate(final String ql, final Object... params);

    public T findByStringId(String id);

//    public boolean isProcExist(String procName);
}
